package com.panshi.service.impl;

import com.panshi.mapper.CarouselMapper;
import com.panshi.service.ICarouselService;
import com.panshi.tools.Carousel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CarouselServiceImpl implements ICarouselService {

    @Autowired
    private CarouselMapper carouselMapper;

    /***
     * 轮播图
     * @return
     */
    @Override
    public List<Carousel> queryCarousel() {
        return carouselMapper.queryCarousel();
    }
}
